-- GENERATED SPELL FOR [Death's Head Priest] --


function spell0_4517(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(6063,pUnit)
pUnit:RegisterEvent('Sorts_4517', 3000, 1)
end

function spell1_4517(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4517', 3000, 1)
end

function Sorts_4517(pUnit, Event)
local choix_sorts_4517 = math.random(0, 1)
if choix_sorts_4517 == 0 then
pUnit:RegisterEvent('spell0_4517', 1, 1)
end
if choix_sorts_4517 == 1 then
pUnit:RegisterEvent('spell1_4517', 1, 1)
end
end

function mob4517_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4517', math.random(1500, 3000), 1)
end

function mob4517_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4517_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4517_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4517, 1, 'mob4517_Action')
RegisterUnitEvent(4517, 2, 'mob4517_Leave')
RegisterUnitEvent(4517, 3, 'mob4517_Kill')
RegisterUnitEvent(4517, 4, 'mob4517_Die')
